import http from "@/util/http"

// table数据
export function listTableData(data) {
  return http({
    url: '/system/user/listUser',
    method: 'get',
    data,
  })
}

// 新增用户
export function addTableData(data) {
  return http({
    url: '/system/user/addUser',
    method: 'post',
    data,
  })
}

// 编辑用户
export function editTableData(data) {
  return http({
    url: '/system/user/editUser',
    method: 'post',
    data,
  })
}

// 删除用户
export function deleteTableData(data) {
  return http({
    url: '/system/user/deleteUser',
    method: 'delete',
    data,
  })
}